package com.example.skudemo.core.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CommonException extends RuntimeException {
    private String message;
    private int code;

    public CommonException(String message) {
        super(message);
        this.message = message;
    }

    public CommonException(String message, Throwable e) {
        super(message, e);
        this.message = message;
    }

    public CommonException(String message, int code) {
        super(message);
        this.message = message;
        this.code = code;
    }

    public CommonException(String message, int code, Throwable e) {
        super(message, e);
        this.message = message;
        this.code = code;
    }
}
